<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<form action="UpdateNoticeServlet">
<input type="hidden" name="id" value="${notice.id}"><br>
标题:<input type="text" name="title" value="${notice.title}"><br>
发布人：<input type="text" name="author" value="${notice.author}"><br>
状态：
<%
/*
//把servlet中放入到request的对象取出来
entity.Notice notice = (entity.Notice)request.getAttribute("notice");
int notice_status = notice.getNotice_status();
System.out.println(notice_status);
String c1 = "";
String c2 = "";
if (notice_status==1){
	c1 = "checked";
	c2 = "";
}
else{
	c1 = "";
	c2 = "checked";	
}

*/
%>
<!-- 
<input name="notice_status" type="radio" <%//=c1%> value="1">已审核
<input name="notice_status" type="radio" <%//=c2%> value="0">未审核
 -->
 
 
<input name="notice_status" type="radio" value="0" <c:if test="${notice.notice_status==0}">checked</c:if>  >已审核
<input name="notice_status" type="radio" value="1" <c:if test="${notice.notice_status==1}">checked</c:if>>未审核
<br>
内容：<textarea rows="5" cols="8" name="content">${notice.content}</textarea><br>
<input type="submit" value="修改"> 







</form>
</body>
</html>